package com.hk.employeemanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * @author by 何坤
 * @Classname RoleEntity
 * @Description TODO
 * @Date 2019/11/27 14:31
 */
@TableName("tab_role")
public class RoleEntity {
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "role_role_en")
    private String roleEn;

    @TableField(value = "role_role_zh")
    private String roleZh;

    @TableField(exist = false)
    private List<MenuEntity> menuEntity;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleEn() {
        return roleEn;
    }

    public void setRoleEn(String roleEn) {
        this.roleEn = roleEn;
    }

    public String getRoleZh() {
        return roleZh;
    }

    public void setRoleZh(String roleZh) {
        this.roleZh = roleZh;
    }

    public List<MenuEntity> getMenuEntity() {
        return menuEntity;
    }

    public void setMenuEntity(List<MenuEntity> menuEntity) {
        this.menuEntity = menuEntity;
    }

    @Override
    public String toString() {
        return "RoleEntity{" +
                "id=" + id +
                ", roleEn='" + roleEn + '\'' +
                ", roleZh='" + roleZh + '\'' +
                ", menuEntity=" + menuEntity +
                '}';
    }
}
